//
//  IndustryNewListViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/20.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "IndustryNewListViewController.h"
#import "IndustryViewModel.h"
#import "NewInformationViewController.h"

@interface IndustryNewListViewController ()<SelectRowAtIndexPathDelegate>
@property (nonatomic,strong) IndustryViewModel * industryViewModle;
@end

@implementation IndustryNewListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.industryViewModle = [[IndustryViewModel alloc] initWithViewToViewModel:self.tableView theSuperView:self.view];
    self.industryViewModle.delegate = self;
}

#pragma mark -- SelectRowAtIndexPathDelegate
-(void)newDidSelectRowAtIndexPath:(NSIndexPath *)row_index{
    NewInformationViewController * newVc = [NewInformationViewController new];
    [self.navigationController pushViewController:newVc animated:YES];
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
